From: Andrew Garrett Date: Fri, 24 Apr 2009 11:11:44 +0000 (+0000) Subject: Fix ids for multi-select types X-Git-Tag: 1.31.0-rc.0~42049 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=6650e6e3a9d6fec7ab8f20167942a8d94a01554c;p=lhc%2Fweb%2Fwiklou.git Fix ids for multi-select types --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 0db6980a09..f77ff4c64c 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -664,8 +664,8 @@ class HTMLMultiSelectField extends HTMLFormField { $html .= $this->formatOptions( $info, $value ); } else { $checkbox = Xml::check( $this->mName.'[]', in_array( $info, $value ), - array( 'id' => $this->mID, 'value' => $info ) ); - $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID ), $label ); + array( 'id' => $this->mID."-$info", 'value' => $info ) ); + $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID."-$info" ), $label ); $html .= Xml::tags( 'p', null, $checkbox ); }